package Asgmt1.element;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Score implements Serializable {
    private Date scoreTime;
    private String result;
    private int scores;

    @Override
    public String toString() {
        SimpleDateFormat format =new SimpleDateFormat("dd/MM/yyyy-HH点mm分ss秒");
        return "scoreTime:" + format.format(scoreTime) +
                ", result:" + result +
                ", scores:" + scores ;
    }

    public Score() {
    }

    public Score(Date scoreTime, String result, int scores) {
        this.scoreTime = scoreTime;
        this.result = result;
        this.scores = scores;
    }

    public Date getScoreTime() {
        return scoreTime;
    }

    public void setScoreTime(Date scoreTime) {
        this.scoreTime = scoreTime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public int getScores() {
        return scores;
    }

    public void setScores(int scores) {
        this.scores = scores;
    }
}
